xen/arm: Implement p2m_type_t as an enum
authorJulien Grall <julien.grall@linaro.org>
Tue, 17 Dec 2013 16:27:51 +0000 (16:27 +0000)
committerIan Campbell <ian.campbell@citrix.com>
Wed, 18 Dec 2013 14:21:06 +0000 (14:21 +0000)
commit587db6905046fd55f70f0d9fbbf7ff6a8d2ef58a
treee20d92210dcef9c4f4bb1783484adda2497df7ca
parentef8f305c6b4dd9e81e4c87ce3a251d779ff2301d
xen/arm: Implement p2m_type_t as an enum

Until now, Xen doesn't know the type of the page (ram, foreign page, mmio,...).
Introduce p2m_type_t with basic types:
    - p2m_invalid: Nothing is mapped here
    - p2m_ram_rw: Normal read/write guest RAM
    - p2m_ram_ro: Read-only guest RAM
    - p2m_mmio_direct: Read/write mapping of device memory
    - p2m_map_foreign: RAM page from foreign guest
    - p2m_grant_map_rw: Read/write grant mapping
    - p2m_grant_map_ro: Read-only grant mapping

Signed-off-by: Julien Grall <julien.grall@linaro.org>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
xen/arch/arm/p2m.c
xen/include/asm-arm/p2m.h